/*******************************************************************************
*  file    : traindata.hpp
*  created : 06.07.2013
*  author  : 
*******************************************************************************/

#ifndef TRAINDATA_HPP
#define TRAINDATA_HPP

#include "uzdatagetter_global.hpp"
#include <QString>
#include <QDateTime>
#include <QVector>
#include <QJsonObject>

struct UZDATAGETTERSHARED_EXPORT StationPoint
{
    StationPoint(const QJsonObject& jo = QJsonObject());
    int       station_id;
    QString   station_name;
    QDateTime time;
};

struct UZDATAGETTERSHARED_EXPORT PlaceType
{
    PlaceType(const QJsonObject& jo = QJsonObject());
    QString title;
    QString letter;
    int     places;
};

struct UZDATAGETTERSHARED_EXPORT TrainData
{
    QString            num;
    int                model;
    StationPoint       from;
    StationPoint       till;
    QVector<PlaceType> places;
};

#endif // TRAINDATA_HPP
